/*
 * @Author: yxfan
 * @Date: 2023-11-04 15:58:00
 * @LastEditTime: 2024-12-16 18:42:40
 * @FilePath: /umi-demo/src/pages/test/redux/model.js
 * @Description:
 */

export default {
    namespace: 'redux',
    state: { num: 1 },
    reducers: {
        addNum(state, { payload }) {
            return {
                ...state,
                num: state.num + payload,
            };
        },
    },
};
